<?php

namespace App\Http\Services;

use App\Http\Model\SystemConfig;

class SystemConfigServices {
    private static $_systemConfigModel;
    public static function getForbiddenTimeForUpdate(){
        if (self::$_systemConfigModel == null) {
            self::$_systemConfigModel = new SystemConfig();
        }
        return self::$_systemConfigModel->getForbiddenTimeForUpdate();
    }

    public static function getRoomAndVolumeCloseConfig(){
        if (self::$_systemConfigModel == null) {
            self::$_systemConfigModel = new SystemConfig();
        }
        return self::$_systemConfigModel->getRoomAndVolumeCloseConfig();
    }

    public static function getHotRoomListShowConfig(){
        if (self::$_systemConfigModel == null) {
            self::$_systemConfigModel = new SystemConfig();
        }
        return self::$_systemConfigModel->getHotRoomListShowConfig()>0;
    }

}